/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * hor.java
 *
 * Created on Dec 18, 2011, 6:08:14 PM
 */
package aor2.gui.cpu;

import aor2.cpu.blockcontrol.ConditionSignalSet;
import aor2.cpu.blockcontrol.ControlSignalSet;
import aor2.gui.cpu.signals.TabeleSignala;
import java.awt.Graphics;

/**
 * 
 * @author Yogi
 */
public class Hor2T extends javax.swing.JPanel {

	private static Hor2T singleton = null;

	public static Hor2T getInstance() {
		if (singleton == null)
			singleton = new Hor2T();
		return singleton;
	}

	private JLabelSet bradr1, bradr2, brop, branch, orout, run, ld;

	private void makeSignals() {
		bradr1 = new JLabelSet(false, bradr1_1, bradr1_2, bradr1_3);
		bradr2 = new JLabelSet(false, bradr2_1, bradr2_2, bradr2_3);
		brop = new JLabelSet(false, brop1, brop2, brop3, brop4, brop5, brop6);
		branch = new JLabelSet(false, branch_1, branch_2);
		ld = new JLabelSet(false, ld_1, ld_2);
		orout = new JLabelSet(false, orout_1, orout_2, orout_3, orout_4);
		run = new JLabelSet(false, run_1, run_2, run_3);
	}

	/** Creates new form hor */
	protected Hor2T() {
		initComponents();
		makeSignals();
	}

	protected void refreshStates() {
		ConditionSignalSet condss = ConditionSignalSet.getInstance();
		run.setEnabled(condss.get("run").isActive());
		// ld = new Signal(false);
		ControlSignalSet ctrlss = ControlSignalSet.getInstance();
		branch.setEnabled(ctrlss.get("branch").isActive());
		brop.setEnabled(ctrlss.get("brop").isActive());
		bradr1.setEnabled(ctrlss.get("braadr1").isActive());
		bradr2.setEnabled(ctrlss.get("braadr2").isActive());

		s1.setEnabled(bradr2.isEnabled() || brop.isEnabled());
		s2.setEnabled(bradr1.isEnabled() || brop.isEnabled());

		orout.setEnabled(bradr2.isEnabled() || brop.isEnabled()
				|| bradr1.isEnabled() || branch.isEnabled());

		ld.setEnabled(orout.isEnabled() && run.isEnabled());
		inc.setEnabled(!orout.isEnabled() && run.isEnabled());

		PCout.setEnabled(ctrlss.get("PCout").isActive());
		IVTPout.setEnabled(ctrlss.get("IVTPout").isActive());

		adr0.setEnabled(condss.get("adr0").isActive());
		primm.setEnabled(condss.get("PRIMM").isActive());
		prcod.setEnabled(condss.get("PRCOD").isActive());

		kmop.setText("0x"
				+ Long.toHexString(CpuFrame.getInstance().getCU().outKMOP()));
		kmadr1.setText("0x"
				+ Long.toHexString(CpuFrame.getInstance().getCU().outKMADR1()));
		kmadr2.setText("0x"
				+ Long.toHexString(CpuFrame.getInstance().getCU().outKMADR2()));
		uPC.setText("0x"
				+ Long.toHexString(CpuFrame.getInstance().getCU().getuCnt()
						.getState()));
		bruncAdrL.setText("0x"
				+ Long.toHexString(CpuFrame.getInstance().getCU()
						.getBranchAddress()));
	}

	@Override
	protected void paintComponent(Graphics g) {
		refreshStates();
		super.paintComponent(g);
	}

	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed"
	// desc="Generated Code">//GEN-BEGIN:initComponents
	private void initComponents() {
		java.awt.GridBagConstraints gridBagConstraints;

		jLayeredPane1 = new javax.swing.JLayeredPane();
		bruncAdrL = new javax.swing.JLabel();
		jLabel2 = new javax.swing.JLabel();
		jLabel3 = new javax.swing.JLabel();
		jLabel4 = new javax.swing.JLabel();
		jLabel5 = new javax.swing.JLabel();
		jLabel6 = new javax.swing.JLabel();
		jLabel7 = new javax.swing.JLabel();
		jLabel8 = new javax.swing.JLabel();
		jLabel9 = new javax.swing.JLabel();
		jLabel10 = new javax.swing.JLabel();
		jLabel11 = new javax.swing.JLabel();
		jLabel12 = new javax.swing.JLabel();
		jLabel13 = new javax.swing.JLabel();
		jLabel14 = new javax.swing.JLabel();
		jLabel15 = new javax.swing.JLabel();
		jLabel16 = new javax.swing.JLabel();
		jLabel17 = new javax.swing.JLabel();
		jLabel18 = new javax.swing.JLabel();
		jLabel19 = new javax.swing.JLabel();
		jLabel20 = new javax.swing.JLabel();
		jLabel21 = new javax.swing.JLabel();
		jLabel22 = new javax.swing.JLabel();
		CW15 = new javax.swing.JLabel();
		CW8 = new javax.swing.JLabel();
		CW7 = new javax.swing.JLabel();
		CW3 = new javax.swing.JLabel();
		jLabel27 = new javax.swing.JLabel();
		jLabel28 = new javax.swing.JLabel();
		jLabel29 = new javax.swing.JLabel();
		jLabel30 = new javax.swing.JLabel();
		jLabel31 = new javax.swing.JLabel();
		jLabel32 = new javax.swing.JLabel();
		brop1 = new javax.swing.JLabel();
		brop2 = new javax.swing.JLabel();
		brop3 = new javax.swing.JLabel();
		brop4 = new javax.swing.JLabel();
		brop5 = new javax.swing.JLabel();
		brop6 = new javax.swing.JLabel();
		op = new javax.swing.JLabel();
		a2 = new javax.swing.JLabel();
		a1 = new javax.swing.JLabel();
		CW158 = new javax.swing.JLabel();
		bradr1_1 = new javax.swing.JLabel();
		bradr1_2 = new javax.swing.JLabel();
		bradr1_3 = new javax.swing.JLabel();
		bradr2_1 = new javax.swing.JLabel();
		bradr2_2 = new javax.swing.JLabel();
		bradr2_3 = new javax.swing.JLabel();
		run_1 = new javax.swing.JLabel();
		run_2 = new javax.swing.JLabel();
		run_3 = new javax.swing.JLabel();
		orout_1 = new javax.swing.JLabel();
		orout_2 = new javax.swing.JLabel();
		orout_3 = new javax.swing.JLabel();
		orout_4 = new javax.swing.JLabel();
		ld_1 = new javax.swing.JLabel();
		ld_2 = new javax.swing.JLabel();
		inc = new javax.swing.JLabel();
		wr = new javax.swing.JLabel();
		s1 = new javax.swing.JLabel();
		s2 = new javax.swing.JLabel();
		branch_1 = new javax.swing.JLabel();
		branch_2 = new javax.swing.JLabel();
		jLabel34 = new javax.swing.JLabel();
		jLabel35 = new javax.swing.JLabel();
		prcod = new javax.swing.JLabel();
		adr0 = new javax.swing.JLabel();
		primm = new javax.swing.JLabel();
		PCout = new javax.swing.JLabel();
		IVTPout = new javax.swing.JLabel();
		genS1 = new javax.swing.JLabel();
		genS2 = new javax.swing.JLabel();
		kmop = new javax.swing.JLabel();
		kmadr2 = new javax.swing.JLabel();
		kmadr1 = new javax.swing.JLabel();
		uPC = new javax.swing.JLabel();
		jLabel1 = new javax.swing.JLabel();

		setLayout(new java.awt.GridBagLayout());

		bruncAdrL.setBounds(590, 230, 80, 20);
		jLayeredPane1.add(bruncAdrL, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_2pt_z.jpg"))); // NOI18N
		jLabel2.setBounds(48, 670, 373, 7);
		jLayeredPane1.add(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_2pt_z.jpg"))); // NOI18N
		jLabel3.setBounds(189, 644, 108, 7);
		jLayeredPane1.add(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_2pt_z.jpg"))); // NOI18N
		jLabel4.setBounds(327, 645, 85, 7);
		jLayeredPane1.add(jLabel4, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_2pt_z.jpg"))); // NOI18N
		jLabel5.setBounds(243, 694, 358, 7);
		jLayeredPane1.add(jLabel5, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_2pt_z.jpg"))); // NOI18N
		jLabel6.setBounds(368, 740, 28, 7);
		jLayeredPane1.add(jLabel6, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_2pt_z.jpg"))); // NOI18N
		jLabel7.setBounds(100, 753, 104, 7);
		jLayeredPane1.add(jLabel7, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_2pt_z.jpg"))); // NOI18N
		jLabel8.setBounds(294, 190, 307, 7);
		jLayeredPane1.add(jLabel8, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_2pt_z.jpg"))); // NOI18N
		jLabel9.setBounds(258, 178, 171, 7);
		jLayeredPane1.add(jLabel9, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_2pt_z.jpg"))); // NOI18N
		jLabel10.setBounds(222, 165, 46, 7);
		jLayeredPane1.add(jLabel10, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_2pt_z.jpg"))); // NOI18N
		jLabel11.setBounds(111, 164, 76, 7);
		jLayeredPane1.add(jLabel11, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel12.setBounds(110, 132, 7, 35);
		jLayeredPane1.add(jLabel12, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel13.setBounds(265, 132, 7, 37);
		jLayeredPane1.add(jLabel13, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel14.setBounds(427, 132, 7, 50);
		jLayeredPane1.add(jLabel14, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel15.setBounds(294, 192, 7, 25);
		jLayeredPane1.add(jLabel15, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel16.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel16.setBounds(258, 180, 7, 36);
		jLayeredPane1.add(jLabel16, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel17.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel17.setBounds(222, 166, 7, 50);
		jLayeredPane1.add(jLabel17, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel18.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel18.setBounds(184, 166, 7, 51);
		jLayeredPane1.add(jLabel18, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel19.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel19.setBounds(598, 192, 7, 506);
		jLayeredPane1.add(jLabel19, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel20.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel20.setBounds(238, 288, 7, 48);
		jLayeredPane1.add(jLabel20, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel21.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel21.setBounds(238, 408, 7, 54);
		jLayeredPane1.add(jLabel21, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel22.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel22.setBounds(238, 534, 7, 43);
		jLayeredPane1.add(jLabel22, javax.swing.JLayeredPane.DEFAULT_LAYER);

		CW15.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		CW15.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		CW15.setEnabled(false);
		CW15.setBounds(189, 624, 7, 24);
		jLayeredPane1.add(CW15, javax.swing.JLayeredPane.DEFAULT_LAYER);

		CW8.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		CW8.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		CW8.setEnabled(false);
		CW8.setBounds(296, 624, 7, 24);
		jLayeredPane1.add(CW8, javax.swing.JLayeredPane.DEFAULT_LAYER);

		CW7.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		CW7.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		CW7.setEnabled(false);
		CW7.setBounds(326, 624, 7, 24);
		jLayeredPane1.add(CW7, javax.swing.JLayeredPane.DEFAULT_LAYER);

		CW3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		CW3.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		CW3.setEnabled(false);
		CW3.setBounds(410, 624, 7, 24);
		jLayeredPane1.add(CW3, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel27.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel27.setBounds(241, 646, 7, 53);
		jLayeredPane1.add(jLabel27, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel28.setText(".....");
		jLabel28.setBounds(110, 605, 50, 20);
		jLayeredPane1.add(jLabel28, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel29.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel29.setBounds(368, 647, 7, 97);
		jLayeredPane1.add(jLabel29, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel30.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel30.setBounds(203, 672, 7, 85);
		jLayeredPane1.add(jLabel30, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel31.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel31.setBounds(395, 741, 7, 27);
		jLayeredPane1.add(jLabel31, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel32.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_2pt_z.jpg"))); // NOI18N
		jLabel32.setBounds(100, 755, 7, 13);
		jLayeredPane1.add(jLabel32, javax.swing.JLayeredPane.DEFAULT_LAYER);

		brop1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		brop1.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		brop1.setEnabled(false);
		brop1.setBounds(421, 232, 50, 7);
		jLayeredPane1.add(brop1, javax.swing.JLayeredPane.DEFAULT_LAYER);

		brop2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		brop2.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		brop2.setEnabled(false);
		brop2.setBounds(421, 267, 50, 7);
		jLayeredPane1.add(brop2, javax.swing.JLayeredPane.DEFAULT_LAYER);

		brop3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		brop3.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		brop3.setEnabled(false);
		brop3.setBounds(470, 235, 7, 36);
		jLayeredPane1.add(brop3, javax.swing.JLayeredPane.DEFAULT_LAYER);

		brop4.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		brop4.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		brop4.setEnabled(false);
		brop4.setBounds(470, 248, 60, 7);
		jLayeredPane1.add(brop4, javax.swing.JLayeredPane.DEFAULT_LAYER);

		brop5.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		brop5.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		brop5.setEnabled(false);
		brop5.setBounds(546, 356, 10, 3);
		jLayeredPane1.add(brop5, javax.swing.JLayeredPane.DEFAULT_LAYER);

		brop6.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		brop6.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		brop6.setEnabled(false);
		brop6.setBounds(360, 984, 7, 26);
		jLayeredPane1.add(brop6, javax.swing.JLayeredPane.DEFAULT_LAYER);
		op.setBounds(120, 140, 0, 0);
		jLayeredPane1.add(op, javax.swing.JLayeredPane.DEFAULT_LAYER);
		a2.setBounds(280, 140, 0, 0);
		jLayeredPane1.add(a2, javax.swing.JLayeredPane.DEFAULT_LAYER);
		a1.setBounds(440, 140, 0, 0);
		jLayeredPane1.add(a1, javax.swing.JLayeredPane.DEFAULT_LAYER);
		CW158.setBounds(300, 200, 0, 0);
		jLayeredPane1.add(CW158, javax.swing.JLayeredPane.DEFAULT_LAYER);

		bradr1_1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		bradr1_1.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		bradr1_1.setEnabled(false);
		bradr1_1.setBounds(420, 280, 30, 7);
		jLayeredPane1.add(bradr1_1, javax.swing.JLayeredPane.DEFAULT_LAYER);

		bradr1_2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		bradr1_2.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		bradr1_2.setEnabled(false);
		bradr1_2.setBounds(543, 365, 10, 3);
		jLayeredPane1.add(bradr1_2, javax.swing.JLayeredPane.DEFAULT_LAYER);

		bradr1_3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		bradr1_3.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		bradr1_3.setEnabled(false);
		bradr1_3.setBounds(383, 984, 7, 26);
		jLayeredPane1.add(bradr1_3, javax.swing.JLayeredPane.DEFAULT_LAYER);

		bradr2_1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		bradr2_1.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		bradr2_1.setEnabled(false);
		bradr2_1.setBounds(421, 220, 30, 7);
		jLayeredPane1.add(bradr2_1, javax.swing.JLayeredPane.DEFAULT_LAYER);

		bradr2_2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		bradr2_2.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		bradr2_2.setEnabled(false);
		bradr2_2.setBounds(543, 377, 10, 3);
		jLayeredPane1.add(bradr2_2, javax.swing.JLayeredPane.DEFAULT_LAYER);

		bradr2_3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		bradr2_3.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		bradr2_3.setEnabled(false);
		bradr2_3.setBounds(408, 984, 7, 26);
		jLayeredPane1.add(bradr2_3, javax.swing.JLayeredPane.DEFAULT_LAYER);

		run_1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		run_1.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		run_1.setEnabled(false);
		run_1.setBounds(406, 340, 70, 7);
		jLayeredPane1.add(run_1, javax.swing.JLayeredPane.DEFAULT_LAYER);

		run_2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		run_2.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		run_2.setEnabled(false);
		run_2.setBounds(406, 400, 30, 7);
		jLayeredPane1.add(run_2, javax.swing.JLayeredPane.DEFAULT_LAYER);

		run_3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		run_3.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		run_3.setEnabled(false);
		run_3.setBounds(435, 343, 7, 61);
		jLayeredPane1.add(run_3, javax.swing.JLayeredPane.DEFAULT_LAYER);

		orout_1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		orout_1.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		orout_1.setEnabled(false);
		orout_1.setBounds(406, 351, 80, 7);
		jLayeredPane1.add(orout_1, javax.swing.JLayeredPane.DEFAULT_LAYER);

		orout_2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		orout_2.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		orout_2.setEnabled(false);
		orout_2.setBounds(410, 388, 76, 7);
		jLayeredPane1.add(orout_2, javax.swing.JLayeredPane.DEFAULT_LAYER);

		orout_3.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		orout_3.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		orout_3.setEnabled(false);
		orout_3.setBounds(485, 354, 7, 38);
		jLayeredPane1.add(orout_3, javax.swing.JLayeredPane.DEFAULT_LAYER);

		orout_4.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		orout_4.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		orout_4.setEnabled(false);
		orout_4.setFocusable(false);
		orout_4.setBounds(486, 369, 30, 7);
		jLayeredPane1.add(orout_4, javax.swing.JLayeredPane.DEFAULT_LAYER);

		ld_1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		ld_1.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		ld_1.setEnabled(false);
		ld_1.setBounds(336, 352, 31, 7);
		jLayeredPane1.add(ld_1, javax.swing.JLayeredPane.DEFAULT_LAYER);

		ld_2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		ld_2.setDisabledIcon(null);
		ld_2.setEnabled(false);
		ld_2.setBounds(366, 350, 7, 6);
		jLayeredPane1.add(ld_2, javax.swing.JLayeredPane.DEFAULT_LAYER);

		inc.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		inc.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		inc.setEnabled(false);
		inc.setBounds(337, 393, 37, 7);
		jLayeredPane1.add(inc, javax.swing.JLayeredPane.DEFAULT_LAYER);
		wr.setBounds(120, 495, 25, 7);
		jLayeredPane1.add(wr, javax.swing.JLayeredPane.DEFAULT_LAYER);

		s1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		s1.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		s1.setEnabled(false);
		s1.setFocusable(false);
		s1.setBounds(336, 225, 60, 7);
		jLayeredPane1.add(s1, javax.swing.JLayeredPane.DEFAULT_LAYER);

		s2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		s2.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		s2.setEnabled(false);
		s2.setFocusable(false);
		s2.setBounds(336, 273, 56, 7);
		jLayeredPane1.add(s2, javax.swing.JLayeredPane.DEFAULT_LAYER);

		branch_1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		branch_1.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		branch_1.setEnabled(false);
		branch_1.setBounds(546, 386, 8, 3);
		jLayeredPane1.add(branch_1, javax.swing.JLayeredPane.DEFAULT_LAYER);

		branch_2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		branch_2.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		branch_2.setEnabled(false);
		branch_2.setBounds(431, 984, 7, 26);
		jLayeredPane1.add(branch_2, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel34.setText(".....");
		jLabel34.setBounds(237, 609, 20, 14);
		jLayeredPane1.add(jLabel34, javax.swing.JLayeredPane.DEFAULT_LAYER);

		jLabel35.setText(".....");
		jLabel35.setBounds(360, 609, 20, 14);
		jLayeredPane1.add(jLabel35, javax.swing.JLayeredPane.DEFAULT_LAYER);

		prcod.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		prcod.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		prcod.setEnabled(false);
		prcod.setBounds(287, 789, 31, 7);
		jLayeredPane1.add(prcod, javax.swing.JLayeredPane.DEFAULT_LAYER);

		adr0.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		adr0.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		adr0.setEnabled(false);
		adr0.setBounds(287, 813, 31, 7);
		jLayeredPane1.add(adr0, javax.swing.JLayeredPane.DEFAULT_LAYER);

		primm.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_1.jpg"))); // NOI18N
		primm.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/horiz_1pt_0.jpg"))); // NOI18N
		primm.setEnabled(false);
		primm.setBounds(287, 960, 31, 7);
		jLayeredPane1.add(primm, javax.swing.JLayeredPane.DEFAULT_LAYER);

		PCout.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		PCout.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		PCout.setEnabled(false);
		PCout.setBounds(47, 984, 7, 26);
		jLayeredPane1.add(PCout, javax.swing.JLayeredPane.DEFAULT_LAYER);

		IVTPout.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/vert_1pt_1.jpg"))); // NOI18N
		IVTPout.setDisabledIcon(new javax.swing.ImageIcon(getClass()
				.getResource("/aor2/common/resources/vert_1pt_0.jpg"))); // NOI18N
		IVTPout.setEnabled(false);
		IVTPout.setBounds(155, 984, 7, 26);
		jLayeredPane1.add(IVTPout, javax.swing.JLayeredPane.DEFAULT_LAYER);

		genS1.setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
		genS1.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				genS1MouseClicked(evt);
			}
		});
		genS1.setBounds(25, 769, 155, 215);
		jLayeredPane1.add(genS1, javax.swing.JLayeredPane.DEFAULT_LAYER);

		genS2.setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
		genS2.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				genS2MouseClicked(evt);
			}
		});
		genS2.setBounds(319, 769, 155, 215);
		jLayeredPane1.add(genS2, javax.swing.JLayeredPane.DEFAULT_LAYER);
		kmop.setBounds(120, 140, 70, 20);
		jLayeredPane1.add(kmop, javax.swing.JLayeredPane.DEFAULT_LAYER);
		kmadr2.setBounds(270, 140, 90, 20);
		jLayeredPane1.add(kmadr2, javax.swing.JLayeredPane.DEFAULT_LAYER);
		kmadr1.setBounds(430, 140, 80, 20);
		jLayeredPane1.add(kmadr1, javax.swing.JLayeredPane.DEFAULT_LAYER);
		uPC.setBounds(200, 380, 90, 20);
		jLayeredPane1.add(uPC, javax.swing.JLayeredPane.DEFAULT_LAYER);

		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
		gridBagConstraints.weightx = 1.0;
		gridBagConstraints.weighty = 1.0;
		add(jLayeredPane1, gridBagConstraints);

		jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/aor2/common/resources/hor.jpg"))); // NOI18N
		gridBagConstraints = new java.awt.GridBagConstraints();
		gridBagConstraints.gridx = 0;
		gridBagConstraints.gridy = 0;
		gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
		gridBagConstraints.weightx = 1.0;
		gridBagConstraints.weighty = 1.0;
		add(jLabel1, gridBagConstraints);
	}// </editor-fold>//GEN-END:initComponents

	private void genS2MouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_genS2MouseClicked
		TabeleSignala.getInstance().setVisible(true);
	}// GEN-LAST:event_genS2MouseClicked

	private void genS1MouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_genS1MouseClicked
		TabeleSignala.getInstance().setVisible(true);
	}// GEN-LAST:event_genS1MouseClicked

	// Variables declaration - do not modify//GEN-BEGIN:variables
	private javax.swing.JLabel CW15;
	private javax.swing.JLabel CW158;
	private javax.swing.JLabel CW3;
	private javax.swing.JLabel CW7;
	private javax.swing.JLabel CW8;
	private javax.swing.JLabel IVTPout;
	private javax.swing.JLabel PCout;
	private javax.swing.JLabel a1;
	private javax.swing.JLabel a2;
	private javax.swing.JLabel adr0;
	private javax.swing.JLabel bradr1_1;
	private javax.swing.JLabel bradr1_2;
	private javax.swing.JLabel bradr1_3;
	private javax.swing.JLabel bradr2_1;
	private javax.swing.JLabel bradr2_2;
	private javax.swing.JLabel bradr2_3;
	private javax.swing.JLabel branch_1;
	private javax.swing.JLabel branch_2;
	private javax.swing.JLabel brop1;
	private javax.swing.JLabel brop2;
	private javax.swing.JLabel brop3;
	private javax.swing.JLabel brop4;
	private javax.swing.JLabel brop5;
	private javax.swing.JLabel brop6;
	private javax.swing.JLabel bruncAdrL;
	private javax.swing.JLabel genS1;
	private javax.swing.JLabel genS2;
	private javax.swing.JLabel inc;
	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel10;
	private javax.swing.JLabel jLabel11;
	private javax.swing.JLabel jLabel12;
	private javax.swing.JLabel jLabel13;
	private javax.swing.JLabel jLabel14;
	private javax.swing.JLabel jLabel15;
	private javax.swing.JLabel jLabel16;
	private javax.swing.JLabel jLabel17;
	private javax.swing.JLabel jLabel18;
	private javax.swing.JLabel jLabel19;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JLabel jLabel20;
	private javax.swing.JLabel jLabel21;
	private javax.swing.JLabel jLabel22;
	private javax.swing.JLabel jLabel27;
	private javax.swing.JLabel jLabel28;
	private javax.swing.JLabel jLabel29;
	private javax.swing.JLabel jLabel3;
	private javax.swing.JLabel jLabel30;
	private javax.swing.JLabel jLabel31;
	private javax.swing.JLabel jLabel32;
	private javax.swing.JLabel jLabel34;
	private javax.swing.JLabel jLabel35;
	private javax.swing.JLabel jLabel4;
	private javax.swing.JLabel jLabel5;
	private javax.swing.JLabel jLabel6;
	private javax.swing.JLabel jLabel7;
	private javax.swing.JLabel jLabel8;
	private javax.swing.JLabel jLabel9;
	private javax.swing.JLayeredPane jLayeredPane1;
	private javax.swing.JLabel kmadr1;
	private javax.swing.JLabel kmadr2;
	private javax.swing.JLabel kmop;
	private javax.swing.JLabel ld_1;
	private javax.swing.JLabel ld_2;
	private javax.swing.JLabel op;
	private javax.swing.JLabel orout_1;
	private javax.swing.JLabel orout_2;
	private javax.swing.JLabel orout_3;
	private javax.swing.JLabel orout_4;
	private javax.swing.JLabel prcod;
	private javax.swing.JLabel primm;
	private javax.swing.JLabel run_1;
	private javax.swing.JLabel run_2;
	private javax.swing.JLabel run_3;
	private javax.swing.JLabel s1;
	private javax.swing.JLabel s2;
	private javax.swing.JLabel uPC;
	private javax.swing.JLabel wr;
	// End of variables declaration//GEN-END:variables
}
